package o2o.service.code;

import o2o.dao.PO.code.DiscountExchangeCodeInfo;
import org.springframework.context.EmbeddedValueResolverAware;

/**
 * Created with IntelliJ IDEA.
 *
 * @User: @Created by yangtk
 * @Date: @Date 2020/12/1 14:11
 * @Email: yangtongkuan@qq.com
 * @To change this template use File | Settings | File Templates.
 * @desc
 */
public interface DiscountExchangeCodeService extends EmbeddedValueResolverAware {

    void batchGenerateExchangeCode(DiscountExchangeCodeInfo info, Integer generateSize) throws Exception;

    void delDiscountExchangeCodeByCode(String code, String opUser) throws Exception;

    DiscountExchangeCodeInfo findDiscountExchangeCodeByCode(String code);

    Object[] searchByPage(Long startTime, Long endTime, Integer isUse, Integer isExport, Integer page, Integer size);

    boolean useDiscountExchangeCode(String exchangeCode, String orderNo, Double discountMoney, Integer version, String username);

    boolean orderCancelBackDisExchangeCode(String exchangeCode, String orderNo, String opUser);

}
